from base.base import Base


class SearchBase(Base):

    def search_bar_for_input(self):
        return '//android.widget.EditText[@resource-id="com.dangdang.buy2:id/et_search"]'

    def search_button(self):
        return '//android.widget.TextView[@resource-id="com.dangdang.buy2:id/tv_search"]'

    def book_title(self):
        return '//android.widget.TextView[@resource-id="com.dangdang.buy2:id/product_title_tv" and @text="三国演义（青少版+扫码即听有声书，北大博士改编，名师导读和精解，疑难字词注音释义，附练习册，适合小学高年级和初中生阅读）"]'
